//
//  BackgroundImageView.m
//  Education
//
//  Created by 流风幻雾 on 15/7/16.
//  Copyright (c) 2015年 HUA. All rights reserved.
//

#import "BackImageView.h"

@implementation BackImageView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if(self)
    {
        self.image = [UIImage imageNamed:@"cloud.jpg"];
        self.userInteractionEnabled = YES;
        UIVisualEffectView *visualEffectView = [[UIVisualEffectView alloc]initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight]];
        visualEffectView.frame = self.bounds;
        visualEffectView.alpha = 0.6;
        [self addSubview:visualEffectView];
    }
    return self;
}

@end
